package common

const IsLittleEndian bool= true
type  BitConverter struct {

}
//public static byte[] GetBytes(bool value) {
//Contract.Ensures(Contract.Result<byte[]>() != null);
//Contract.Ensures(Contract.Result<byte[]>().Length == 1);
//
//byte[] r = new byte[1];
//r[0] = (value ? (byte)Boolean.True : (byte)Boolean.False );
//return r;
//}

func BitConverter_GetBytes(value bool) []byte  {

	r:= [1]byte{}
	if value {
		 r[0]=1
		 return r[:]
	}else {
		r[0]=0
		return r[:]
	}
}

func BytesToInt32([]byte) int {

	return 0
}